]> dgit.raspbian.org Git - gnome-shell.git/commit
ci: Make --destdir option in install-meson-project cumulative
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 4 Oct 2024 16:19:58 +0000 (18:19 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 5 Dec 2024 12:57:29 +0000 (12:57 +0000)
commit52a293c032523e50defa6c0eba066d10d1c87fa5
treed86230fa7bb252f3398e5c341f8d2e10e2397914
parent5434e02988ee52a1c99b101c81b886342e212a80
ci: Make --destdir option in install-meson-project cumulative

When building a system extension for GNOME OS, any extra
dependencies are needed both in the container (for building)
and the extension's destdir (for running).

Because of that, the --destdir flag that was added in commit
8aeb6dc86 does not only install to the specified directory
as expected, but also runs a second install step without
destdir (i.e. to the system).

However that behavior is not a good fit when we extend our
existing toolbox tooling to build system extensions for
Fedora instead of GNOME OS.

To account for that, make the --destdir option cumulative
and install the project to all provided destdirs (or /
if omitted).

This gives us the flexibility to install to the system, a
different destdir, or both:

```
 $ ./install-meson-project.sh  # install to system
 $ ./install-meson-project.sh --destdir /new/dest  # install to destdir
 $ ./install-meson-project.sh --destdir /new/dest --destdir /  # both
```

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3498>
.gitlab-ci/install-meson-project.sh